
# 以脚本命令行的形式，来运行项目manage.app()
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

from werkzeug.security import generate_password_hash,check_password_hash

from info import create_app,db
app = create_app("development")

manage = Manager(app)

Migrate(app, db)
manage.add_command("db", MigrateCommand)


if __name__ == '__main__':
    # 输出路由映射
    print(app.url_map)
    manage.run()
